home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000187_icon-group-sender _Thu Aug 15 07:03:48 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 16 Aug 1996 12:45:47 MST
  2. Date: Thu, 15 Aug 1996 07:03:48 -0500
  3. Message-Id: <199608151203.HAA22106@ns1.computek.net>
  4. Mime-Version: 1.0
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. From: gep2@computek.net
  8. Subject: Re: Problem with graphics
  9. To: rjhare@tattoo.ed.ac.uk, icon-group@cs.arizona.edu
  10. X-Mailer: SPRY Mail Version: 04.00.06.17
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13. >The 'obvious' way to do this, and the way I think I am going to have to go is
  14. to use 2 windows, one of them off screen wityh the grid drawn on the on screen
  15. window. Every time I draw to the on screen window, I draw to the off screen
  16. window, and when I save, I save the off screen window thus avoiding saving the
  17. grid. It's a pain because I have 2 lines of drawing code where before I had
  18. one. However...
  19.  
  20. A lot clearly depends on how much you draw, and how much memory a secondary 
  21. window will require, versus how many times you actually do save the window to 
  22. disk.
  23.  
  24. One approach would be to maintain a list containing all the graphics calls (and 
  25. their parameters) you have made since erasing or creating a graphics window.  
  26. Then, before saving it, you can run down the list and essentially recreate the 
  27. window (or do any desired subset of the calls that created it... this is how 
  28. AutoCAD and other software handle their "layering" stuff I think).  If you build 
  29. a set of suitable graphics front-end routines, this could be transparent to the 
  30. calling program (and you'd not have to duplicate your calls in-line).
  31.  
  32. Gordon Peterson
  33. http://www.computek.net/public/gep2/
  34.  
  35.